package com.training.biryani;

import com.training.biryani.nonveg.NonVegKitchen;

public class KitchenFactory {
	
	public static Kitchen getKitchen(KitchenType type) throws InvalidTypeException
	{
		Kitchen kitchen = null;
		switch(type)
		{
		case NonVeg:
			kitchen = NonVegKitchen.getKitchenInstance();
			break;
		case Veg:
			kitchen = NonVegKitchen.getKitchenInstance();
			break;
		default:
			throw new InvalidTypeException("Invalid Kitchen type, I can only make Veg or NonVeg Kichen");
		
		}
		return kitchen;
	}

}
